package Java练习.数组练习;

public class Get_min {
    public static void main(String[] args) {
        //找出数据中的最小值
        int[] num = {33, 5, 22, 44, 55};
        int min=num[0];
        for (int i = 0; i < num.length; i++) {
            if (num[i]<min){
                min=num[i];
            }
        }
        System.out.println("最小值为:"+min);
    }
}
